<include file="header"/>
<body>
	<div class="wraper" js="/assets/base/merchantVoucher/search">
		<input type="hidden" id="appid" value="{BEESCRM:$openid}"/>
		<input type="hidden" id="timestamp" value="{BEESCRM:$timestamp}"/>
		<input type="hidden" id="noncestr" value="{BEESCRM:$noncestr}"/>
		<input type="hidden" id="signature" value="{BEESCRM:$signature}"/>
		<div class="search bg-red">
			<input placeholder="汉堡王 愤怒霸王鸡条5折券" id="searchVoucherName" value="{BEESCRM:$voucher_keyword}"/>
			<a class="serach-btn"><img src="/assets/base/merchantVoucher/images/search.png"/></a>
		</div>
		<div class="tab clearfix">
			<div class="full-box">
				<a href="javascript:void(0)" class="tab-list active" data-category_id="">全部分类</a>
				<foreach name="data_voucher_category" item="vo">
					<a href="javascript:void(0)"  data-category_id="{BEESCRM:$vo.category_id}" class="tab-list">{BEESCRM:$vo.category_name}</a>
				</foreach>
			</div>
		</div>
		<div class="coupon-container">
			<div class="category_voucher_list">
				<foreach name="data" item="vo">
					<div class="coupon-list tb-mode">
						<div class="img-box tb-cell">
							<img <if condition="$vo['img_show'] eq null">src="/assets/base/merchantVoucher/images/advert.jpg"<else/>src="{BEESCRM:$vo.img_show}"</if> />
						</div>
						<div class="tb-cell text-block">
							<p class="coupon-name">{BEESCRM:$vo.card_title}</p>
							<div class="clearfix">
								<div class="half-box pull-left text-12 text-gray">
									<p style="font-size: 13px;">商家：{BEESCRM:$vo.business_name}</p>
									<p>剩余：<span class="text-red">{BEESCRM:$vo.voucher_base_count}张</span></p>
								</div>
								<div class="half-box pull-right text-right">
									<input type="hidden" id="cardId_{BEESCRM:$vo.merchant_voucher_id}" value="{BEESCRM:$vo.card_id}" />
									<input type="hidden" id="cardExt_{BEESCRM:$vo.merchant_voucher_id}" value='{BEESCRM:$vo.cardExt}' />
									<a href="javascript:void(0);" data-merchant_voucher_id="{BEESCRM:$vo.merchant_voucher_id}" class="btn bg-red btn_all_get">立即领取</a>
								</div>
							</div>
						</div>
					</div>
				</foreach>
			</div>
			<foreach name="data_voucher_category" item="co">
				<div class="category_voucher_list" style="display: none;">
					<foreach name="co['data_voucher']" item="vo">
						<div class="coupon-list tb-mode">
							<div class="img-box tb-cell">
								<img <if condition="$vo['img_show'] eq null">src="/assets/base/merchantVoucher/images/advert.jpg"<else/>src="{BEESCRM:$vo.img_show}"</if> />
							</div>
							<div class="tb-cell text-block">
								<p class="coupon-name">{BEESCRM:$vo.card_title}</p>
								<div class="clearfix">
									<div class="half-box pull-left text-12 text-gray">
										<p style="font-size: 13px;">商家：{BEESCRM:$vo.business_name}</p>
										<p>剩余：<span class="text-red">{BEESCRM:$vo.voucher_base_count}张</span></p>
									</div>
									<div class="half-box pull-right text-right">
										<input type="hidden" id="cardId_{BEESCRM:$vo.category_id}_{BEESCRM:$vo.merchant_voucher_id}" value="{BEESCRM:$vo.card_id}" />
										<input type="hidden" id="cardExt_{BEESCRM:$vo.category_id}_{BEESCRM:$vo.merchant_voucher_id}" value='{BEESCRM:$vo.cardExt}' />
										<a href="javascript:void(0);" data-merchant_voucher_id="{BEESCRM:$vo.merchant_voucher_id}" data-category_id="{BEESCRM:$vo.category_id}" class="btn bg-red btn_cate_get">立即领取</a>
									</div>
								</div>
							</div>
						</div>
					</foreach>
				</div>
			</foreach>

		</div>
	</div>
</body>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<include file="footer"/>